package assignment9.Parcel8;

import assignment9.*;
public class Parcel8 {
    public Destination dest(final String dest) {
    	return new Destination() {
    		//初始化内部类成员
            private String label = dest;
            //重写父类方法
            public String readLabel() { return label; }
        };
    }
    public static void main(String[] args) {
        Parcel8 p = new Parcel8();
        Destination d = p.dest("HeHe");
        System.out.println(d.readLabel());
    }
}